﻿using System.Collections.Generic;
using System.Linq;

namespace Pap.Data
{
    /// <summary>
    /// 
    /// </summary>
    public partial class LoanFeasabilityStudy : ILoanFeasibilityStudy
    {

        #region ILoanFeasibilityStudy Members


        /// <summary>
        /// Gets the cusomter loan.
        /// </summary>
        public ICustomerLoan CusomterLoan
        {
            get
            {
                return this.CustomerLoan;
            }
        }

        /// <summary>
        /// Gets the attachements.
        /// </summary>
        public IEnumerable<ILoanFeasibilityStudyAttachment> Attachements
        {
            get
            {
                return this.LoanFeasabilityStudyAttachments.OfType<ILoanFeasibilityStudyAttachment>();
            }
        }

        #endregion

        #region ILoanFeasibilityStudy Members


        /// <summary>
        /// Gets the loan payment method.
        /// </summary>
        ILookUpEntity ILoanFeasibilityStudy.LoanPaymentMethod
        {
            get
            {
                return this.LoanPaymentMethod as ILookUpEntity;
            }
        }

        #endregion
    }
}
